package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 业务入库表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business_enter")
@ApiModel(value="业务入库对象")
public class BusinessEnter {

    @TableId(value = "business_enter_id", type = IdType.AUTO)
    private Integer business_enter_id;

    @ApiModelProperty(value = "入库时间")
    @TableField("business_enter_time")
    private String business_enter_time;

    @ApiModelProperty(value = "城市")
    @TableField("city_id")
    private Integer city_id;

    @ApiModelProperty(value = "部门")
    @TableField("department_id")
    private Integer department_id;

    @ApiModelProperty(value = "业务入库人")
    @TableField("business_enter_staff")
    private String business_enter_staff;

    @ApiModelProperty(value = "业务退回人")
    @TableField("return_staff")
    private String return_staff;

    @ApiModelProperty(value = "备注")
    @TableField("business_enter_remarks")
    private String business_enter_remarks;

    @TableField(exist = false)
    @ApiModelProperty(value = "开始时间")
    private String start_time;

    @TableField(exist = false)
    @ApiModelProperty(value = "结束时间")
    private String end_time;

    @TableField(exist = false)
    private List<BusinessEnterCommodity>list;

    @TableField(exist = false)
    private City city;

    @TableField(exist = false)
    private City department;

}
